use sysinfo::{System,SystemExt,ProcessExt};

fn main() {
    let mut sys = sysinfo::System::new_all();
    sys.refresh_all();

    for (pid, proc_) in sys.processes() {
        println!("name: {}", proc_.name());
    }
}
